package file.day9_24.day08.homework;

import java.util.Arrays;

public class 栈堆地址练习Test02 {
    public static void main(String[] args) {
        Point p = new Point(1,2);
        Point[] arr = {new Point(3,4),new Point(4,5),p};
        int a = 2;

        doSome(a,p,arr);
        System.out.println(a);
        System.out.println(p);
        System.out.println(Arrays.toString(arr));
    }
    private static void doSome(int a, Point p, Point[] arr){
        a = 3;
        p = arr[1];
        p.setX(18);
    }
}
